package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.RecommendUser;
import com.tanhua.dubbo.server.vo.PageInfo;

/**
 * @Author: JinboYang
 * @Description:
 * @Date: Created in 18:18 2021/1/4
 * @ModifiedBy:
 */
public interface RecommendUserApi {

    /**
       * @Description: 查找一位得分最高的推荐用户
       * @Param:[userId]
       * @return:com.tanhua.dubbo.server.pojo.RecommendUser
       * @Author:JinboYang
       * @Date:2021/1/4
       */
    RecommendUser queryWithMaxScore(Long userId);

    /**
       * @Description: 按照得分倒序
       * @Param:[userId, pageNum, pageSize]
       * @return:com.tanhua.dubbo.server.vo.PageInfo<com.tanhua.dubbo.server.pojo.RecommendUser>
       * @Author:JinboYang
       * @Date:2021/1/4
       */
    PageInfo<RecommendUser> queryPageInfo(Long userId, Integer pageNum, Integer pageSize);

    /**
       * @Description: 查询推荐好友的缘分值
       * @Param:[userId, toUserId]
       * @return:double
       * @Author:JinboYang
       * @Date:2021/1/13
       */
    double queryScore(Long userId, Long toUserId);
}
